<%
	c.jsFiles.append('/script/map/maploc.js?v=10')
%>
<style type="text/css">
	#topiclist tr{cursor:pointer;}
	#topiclist tr:hover{background-color:#F9F9F9;}
	#button_add_topic{
		float:right;
		width:80px;
		height:25px;
		background:url('/image/global/button_add_topic.png');
	}
	#button_add_topic:hover{background-position:0 -25px;}
	#link_return{
		float:left;
		width:60px;
		height:25px;
		background:url('/image/global/button_return.png');
	}
	#link_return:hover{background-position:0 -25px;}
</style>
<div class="page_variable">
	<div var_name="info" id="${c.maploc.id}" maploc_id="${c.maploc.id}" name="${c.maploc.name}" address="${c.maploc.address}"
		topic_count="${c.topicCount}" rate_count="${c.rateCount}" total_rate_score="${c.totalRateScore}"
		% if c.loginUser != None :
			my_rating="${c.myRating}"
		% endif
	></div>
</div>
<div id="page_bound">
	<a class="bshareDiv" href="http://www.bshare.cn/share">分享按钮</a><script language="javascript" type="text/javascript" src="http://www.bshare.cn/button.js#uuid=&amp;bp=renren,sinaminiblog,qzone,douban,blog163,blogsina,kaixin001,bgoogle&amp;style=3&amp;fs=4&amp;textcolor=#FFF&amp;bgcolor=#ADADAD&amp;text=分享到..."></script>
	<div class="page_column_left_padding15">
		<div id="topic_count" align="center" style="background:url('/image/global/post_replies.png') no-repeat scroll 0 0 transparent;width:46px;height:52px;position:absolute;top:-20px;right:-20px;color:#FFFFFF;font-size:18px;padding-left:3px;padding-top:11px;">
			${c.topicCount}
		</div>
		<div class="top"></div>
		<div class="content">
			<div id="loc_name" style="clear:both;">
				<h1>${c.maploc.name}</h1>
			</div>
			<%include file="maploc_module_locinfo.mako"/>
			<div id="topiclist" style="padding-top:30px;clear:both;"></div>
			<table><tbody>
				<tr id="topiclist_example" class="hidden_example">
					<td id="topic_id" style="display:none;"></td>
					<td><div id="topic_title"></div></td>
					<td style="width:100px;"><div id="topic_date" style="text-align:center;color:#A1A0A0;border-left:1px solid #E7E7E7;"></div></td>
					<td style="width:80px;"><div id="topic_user" style="text-align:center;border-left:1px solid #E7E7E7;"></div></td>
					<td style="width:30px;"><div id="topic_postcount" style="text-align:center;border-left:1px solid #E7E7E7;"></div></td>
				</tr>
			</tbody></table>
			<div id="add_topic" style="width:526px;padding-top:30px;width:100%;clear:both;">
				<h2>发起话题</h2>
				<div id="topic_bound" style="padding-top:5px;">
					% if c.loginUser == None :
						<div style="padding-left:10px;">登录后创建话题。</div>
					% else :
						<table align="center" style="width:100%;">
							<tbody>
								<tr>
									<td width="30px">标题</td>
									<td>
										<div id="topic_msg" style="float:left;display:none;width:100%;"></div>
										<div id="topic_title">
											<input id="input_title" name="title" maxlength="50" style="width:100%;"></input>
										</div>
									</td>
								</tr>
								<tr>
									<td></td>
									<td>
										<div id="topic_content" style="">
											<textarea id="input_content" name="content" style="width:100%;height:70px;"></textarea>
										</div>
									</td>
								</tr>
								<tr>
									<td></td>
									<td><a href="javascript:void(0);" id="button_add_topic"></a></td>
								</tr>
							</tbody>
						</table>
					% endif
				</div>
			</div>
			<div style="padding-top:30px;clear:both;"></div>
		</div>
		<div class="bottom"></div>
	</div>
	<div class="page_column_right_padding_left30">
		<div style="height:20px;clear:both;"></div>
		<a id="link_return" href="/map"></a>
		<div style="height:20px;clear:both;"></div>
		% if c.maploc.store != None :
			<%include file="maploc_module_discounts.mako"/>
			<div style="height:30px;clear:both;"></div>
		% endif
		<%include file="maploc_module_gallery.mako"/>
	</div>
</div>